package com.harisucici.websocketlib.entities.receive;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity()
public class CurrentSessionReceive {


    /**
     * msgType : TEXT
     * id  : 1296095258916032512
     * imgAvator :
     * textAvator : 王五
     * timelineId : 1296095258916032512
     * type : SINGLE
     * sequenceId : 1597848168924000
     * sendTime : 昨天
     * senderName : 王五
     * sender : 201912311101093
     * appSeqId  : 1296095258916032512
     * text : 你们可以开始聊天了~
     * timestamp : 1597848168755
     */

    @PrimaryKey(autoGenerate = true)
    @NonNull
    private long id;
    private long time;//时长
    private String msgType;
    private String imgAvator;
    private String textAvator;
    private String timelineId;
    private String type;
    private long sequenceId;//
    private long appSeqId;
    private String sendTime;//
    private String senderName;
    private String sender;//
    private String text;
    private long timestamp;
    private int sendState;//0 已发送 1 发送中 2 未发送

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getImgAvator() {
        return imgAvator;
    }

    public void setImgAvator(String imgAvator) {
        this.imgAvator = imgAvator;
    }

    public String getTextAvator() {
        return textAvator;
    }

    public void setTextAvator(String textAvator) {
        this.textAvator = textAvator;
    }

    public String getTimelineId() {
        return timelineId;
    }

    public void setTimelineId(String timelineId) {
        this.timelineId = timelineId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public long getSequenceId() {
        return sequenceId;
    }

    public void setSequenceId(long sequenceId) {
        this.sequenceId = sequenceId;
    }

    public long getAppSeqId() {
        return appSeqId;
    }

    public void setAppSeqId(long appSeqId) {
        this.appSeqId = appSeqId;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public int getSendState() {
        return sendState;
    }

    public void setSendState(int sendState) {
        this.sendState = sendState;
    }
}

